package com.club.subject.domain.convert;


import com.club.subject.domain.entity.SubjectInfoBO;
import com.club.subject.domain.entity.SubjectOptionBO;
import com.club.subject.infra.baisc.entity.SubjectInfo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 题目类型转化器 DTO->BO
 */
@Mapper
public interface SubjectInfoConverter {
    SubjectInfoConverter INSTANCE = Mappers.getMapper(SubjectInfoConverter.class);

    SubjectInfo convertBoToInfo(SubjectInfoBO subjectInfoBO);


    SubjectInfoBO convertOptionToBo(SubjectOptionBO SubjectOptionBO);

    SubjectInfoBO convertOptionAndInfoToBo(SubjectOptionBO SubjectOptionBO, SubjectInfo subjectInfo);

    List<SubjectInfoBO> convertInfoToBOList(List<SubjectInfo> subjectInfoList);
}
